/**
 * Vuex 全局状态管理
 * @see https://vuex.vuejs.org/en/
 * @author Zeon scplay@gmail.com
 * @date 2017/8/5
 * @copyright Created by Panxsoft.
 */

import Vue from 'vue';
import Vuex from 'vuex';
import userToken from './modules/userToken';
import spinShow from './modules/spinShow';
import menu from './modules/menu';
import staff from './modules/staff';
import app from './modules/app';
import report from './modules/report';

const config = {
	modules: {
		userToken,
		spinShow,
		staff,
		menu,
		app,
		report,
	},
};

Vue.use(Vuex);

const store = new Vuex.Store(config);

export default store;
